<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/common/navigationRight.jsp" %>
<%@include file="/WEB-INF/jsp/common/head.jsp" %>
<%@include file="/WEB-INF/jsp/common/navigationLeft.jsp" %>


<div class="m2-userCentermanage-con">
    <div class="m2-user-recharge">
        <h3><i class="m2-user-alertset"></i>通知设置</h3>
    </div>
    <div class="m2-recharge-mainbody">
        <div class="m2-user-setbtn">
            <script>
                window.confirm = function () {
                };
                window.prompt = function () {
                };
                window.open = function () {
                };
                window.print = function () {
                };
                // Support hover state for mobile.
                if (false) {
                    window.ontouchstart = function () {
                    };
                }
            </script>
            <table cellpadding="0" cellspacing="1" border="0">
                <tr>
                    <th></th>
                    <th>站内消息</th>
                    <th>邮件通知</th>
                    <th>短信通知</th>
                </tr>
                <tr>
                    <td>充值成功</td>
                    <td>
                        <input type="checkbox" id="s1" checked=""/>
                        <label class="slider-v2" for="s1"></label></td>
                    <td>
                        <input type="checkbox" id="s2" checked=""/>
                        <label class="slider-v2" for="s2"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>投资成功</td>
                    <td>
                        <input type="checkbox" id="s4" checked=""/>
                        <label class="slider-v2" for="s4"></label></td>
                    <td>
                        <input type="checkbox" id="s5" checked=""/>
                        <label class="slider-v2" for="s5"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>收到本金或利息</td>
                    <td>
                        <input type="checkbox" id="s7" checked=""/>
                        <label class="slider-v2" for="s7"></label></td>
                    <td>
                        <input type="checkbox" id="s8" checked=""/>
                        <label class="slider-v2" for="s8"></label></td>
                    <td>
                        <input type="checkbox" id="s9" checked=""/>
                        <label class="slider-v2" for="s9"></label></td>
                </tr>
                <tr>
                    <td>收到平台奖励</td>
                    <td>
                        <input type="checkbox" id="s10" checked=""/>
                        <label class="slider-v2" for="s10"></label></td>
                    <td>
                        <input type="checkbox" id="s11" checked=""/>
                        <label class="slider-v2" for="s11"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>提现成功</td>
                    <td>
                        <input type="checkbox" id="s13" checked=""/>
                        <label class="slider-v2" for="s13"></label></td>
                    <td>
                        <input type="checkbox" id="s14" checked=""/>
                        <label class="slider-v2" for="s14"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>债权转让成功</td>
                    <td>
                        <input type="checkbox" id="s16" checked=""/>
                        <label class="slider-v2" for="s16"></label></td>
                    <td>
                        <input type="checkbox" id="s17" checked=""/>
                        <label class="slider-v2" for="s17"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>债权承接成功</td>
                    <td>
                        <input type="checkbox" id="s19" checked=""/>
                        <label class="slider-v2" for="s19"></label></td>
                    <td>
                        <input type="checkbox" id="s20" checked=""/>
                        <label class="slider-v2" for="s20"></label></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>项目公告</td>
                    <td>
                        <input type="checkbox" id="s22" checked=""/>
                        <label class="slider-v2" for="s22"></label></td>
                    <td>
                        <input type="checkbox" id="s23" checked=""/>
                        <label class="slider-v2" for="s23"></label></td>
                    <td>
                        <input type="checkbox" id="s24" checked=""/>
                        <label class="slider-v2" for="s24"></label></td>
                </tr>
                <tr>
                    <td>活动公告</td>
                    <td>
                        <input type="checkbox" id="s25" checked=""/>
                        <label class="slider-v2" for="s25"></label></td>
                    <td>
                        <input type="checkbox" id="s26" checked=""/>
                        <label class="slider-v2" for="s26"></label></td>
                    <td>
                        <input type="checkbox" id="s27" checked=""/>
                        <label class="slider-v2" for="s27"></label></td>
                </tr>
                <tr>
                    <td>其他平台公告</td>
                    <td>
                        <input type="checkbox" id="s28" checked=""/>
                        <label class="slider-v2" for="s28"></label></td>
                    <td>
                        <input type="checkbox" id="s29" checked=""/>
                        <label class="slider-v2" for="s29"></label></td>
                    <td>
                    </td>
                </tr>
            </table>
            <div class="m2-user-setdown">
                <a href="javascript:void(0)">提交修改</a>
            </div>
        </div>
        <div class="m2-recharge-tips">
            <h3><i></i>温馨提示：</h3>
            <ul>
                <li><i class="m2-recharge-tips01"></i><b>为了您的资金安全，不建议您去掉重要的消息提醒。</b></li>
                <li><i class="m2-recharge-tips02"></i><b>如果您更换了邮箱，手机号，请您及时到 安全设置 页面修改。</b></li>
                <li><i class="m2-recharge-tips03"></i><b>使用过程遇到问题，请联系客服，4006-777-518。</b></li>
            </ul>
        </div>
    </div>
</div>
</div>
<script>
    if (document.location.search.match(/type=embed/gi)) {
        window.parent.postMessage('resize', "*");
    }
    $(function () {
        $('.m2-user-setdown a').click(function () {
            p = {};
            $("input:checkbox").each(function () {
                k = $(this).attr('id');
                if ($(this).attr('checked') == 'checked') {
                    v = 1;
                }
                else {
                    v = 2;
                }
                p[k] = v;
            });
            postData('/Usercenter-Messagecontrol-alter_authority', p, function (d) {
                if (d.status == 1) {
                    showDialog('修改成功', '您已经成功设置了消息提醒');
                }
                else {
                    showDialog('修改失败', '对不起，修改失败');
                }
            });
        });

    });
</script>
</body>
</html>